package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.LivebroadcastingroomMapper;
import com.ruoyi.system.domain.Livebroadcastingroom;
import com.ruoyi.system.service.ILivebroadcastingroomService;

/**
 * 直播间信息Service业务层处理
 * 
 * @author kinglu
 * @date 2021-11-30
 */
@Service
public class LivebroadcastingroomServiceImpl implements ILivebroadcastingroomService 
{
    @Autowired
    private LivebroadcastingroomMapper livebroadcastingroomMapper;

    /**
     * 查询直播间信息
     * 
     * @param roomId 直播间信息主键
     * @return 直播间信息
     */
    @Override
    public Livebroadcastingroom selectLivebroadcastingroomByRoomId(Long roomId)
    {
        return livebroadcastingroomMapper.selectLivebroadcastingroomByRoomId(roomId);
    }

    /**
     * 查询直播间信息列表
     * 
     * @param livebroadcastingroom 直播间信息
     * @return 直播间信息
     */
    @Override
    public List<Livebroadcastingroom> selectLivebroadcastingroomList(Livebroadcastingroom livebroadcastingroom)
    {
        return livebroadcastingroomMapper.selectLivebroadcastingroomList(livebroadcastingroom);
    }

    /**
     * 新增直播间信息
     * 
     * @param livebroadcastingroom 直播间信息
     * @return 结果
     */
    @Override
    public int insertLivebroadcastingroom(Livebroadcastingroom livebroadcastingroom)
    {
        return livebroadcastingroomMapper.insertLivebroadcastingroom(livebroadcastingroom);
    }

    /**
     * 修改直播间信息
     * 
     * @param livebroadcastingroom 直播间信息
     * @return 结果
     */
    @Override
    public int updateLivebroadcastingroom(Livebroadcastingroom livebroadcastingroom)
    {
        return livebroadcastingroomMapper.updateLivebroadcastingroom(livebroadcastingroom);
    }

    /**
     * 批量删除直播间信息
     * 
     * @param roomIds 需要删除的直播间信息主键
     * @return 结果
     */
    @Override
    public int deleteLivebroadcastingroomByRoomIds(Long[] roomIds)
    {
        return livebroadcastingroomMapper.deleteLivebroadcastingroomByRoomIds(roomIds);
    }

    /**
     * 删除直播间信息信息
     * 
     * @param roomId 直播间信息主键
     * @return 结果
     */
    @Override
    public int deleteLivebroadcastingroomByRoomId(Long roomId)
    {
        return livebroadcastingroomMapper.deleteLivebroadcastingroomByRoomId(roomId);
    }
}
